﻿using System;
using UnityEngine;

// Token: 0x02000041 RID: 65
public class MirrorReflectionScript : MonoBehaviour
{
	// Token: 0x06000181 RID: 385 RVA: 0x0000F108 File Offset: 0x0000D308
	private void Start()
	{
		this.childScript = base.gameObject.transform.parent.gameObject.GetComponentInChildren<MirrorCameraScript>();
		if (this.childScript == null)
		{
			Debug.LogError("Child script (MirrorCameraScript) should be in sibling object");
		}
	}

	// Token: 0x06000182 RID: 386 RVA: 0x0000F145 File Offset: 0x0000D345
	private void OnWillRenderObject()
	{
		this.childScript.RenderMirror();
	}

	// Token: 0x04000262 RID: 610
	private MirrorCameraScript childScript;
}
